<iframe th:replace="common/top.html" width="100%" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
<link rel="StyleSheet" href="css/category.css" type="text/css" media="screen"/>
<div>
    <form method="post" action="/category2/add" enctype="multipart/form-data">
        <table>
            <tr>
                <h1>新增category</h1>
            </tr>
            <tr>
                <td><label>序列号</label></td>
                <td><input type="text" name="productId" required></td>
            </tr>
            <tr>
                <td><label>种类</label></td>
                <td><input type="text" name="categoryId" th:value="${param.catid[0]}" readonly></td>
            </tr>
            <tr>
                <td><label> 名字</label></td>
                <td><input type="text" name="name" required></td>
            </tr>
            <tr>
                <td><label>展示图片</label></td>
                <td> <input type="file" id="image" name="image" accept="image/*" required> </td>
            </tr>
             <tr>
                 <td><label>简介</label></td>
                 <td><input type="text" name="description" required></td>
             </tr>
            <tr>
                <td colspan="2" style="text-align: center;  vertical-align: middle;"><input type="submit" name="添加产品" class="button" value="添加"></td>
            </tr>
        </table>

    </form>
</div>
    <iframe th:replace="common/bottom.html" width="100%" frameborder="0" scrolling="yes" class="x-iframe"></iframe>